package sury.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品订单
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("tb_yb_goods_orders")
public class GoodsOrderEntity implements Serializable {
    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 用户手机号
     */
    @TableField("user_phone")
    private String userPhone;

    /**
     * 地址id
     */
    @TableField("address")
    private String address;

    /**
     * 处理人id
     */
    @TableField("admin_id")
    private Long adminId;

    /**
     * 订单价格
     */
    @TableField("total_price")
    private Double totalPrice;

    //TODO
    /**
     * 订单状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

}
